import tcdIO.Terminal;

	class Program {

	public static void main(String[] args) {
		
		Terminal terminal1;
		int instruction;
		instruction = 0;
		Programmer pg1;

		terminal1 = new Terminal();
		
		do{
			instruction = terminal1.readInt("Enter 1 to create programmer ");
			if (instruction == 1){
				String name, password;
				int age, height, userID;
				char gender;
				name = terminal1.readString("Enter name: ");
				age = terminal1.readInt("Enter age: ");
				height = terminal1.readInt("Enter height: ");
				gender = terminal1.readChar("Enter m/f for gender: ");
				userID = terminal1.readInt("Enter User ID (number): ");
				password = terminal1.readString("Enter password: ");
				
				pg1 = new Programmer(name,age,height,gender,userID,password);
				
				terminal1.println("");
				terminal1.println("Programmer's name: "  + pg1.getName());
				terminal1.println("Programmer's age: " + pg1.getAge());
				terminal1.println("Programmer's height: " + pg1.getHeight());
				terminal1.println("Programmer's gender: " + pg1.getGender());
				terminal1.println("Programmer's userID: " + pg1.getUserID());
				terminal1.println("Programmer's Password: " + pg1.getPassword());
				
				terminal1.println("");
				
				instruction = terminal1.readInt("Enter 0 to exit, or 1 to repeat: ");
				
			}
			
		}while(instruction != 0);
		

		
		
		

	}

}
